/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.ismaila.designPatterns.behavioural.mediator;

/**
 *
 * @author Chelsea
 */
public class Buyer {
Mediator mediator;
String unitOfCurrency;
public Buyer(Mediator mediator,String unitOfCurrency){
this.mediator=mediator;
this.unitOfCurrency=unitOfCurrency;
}
public boolean attemptToPurchase(float bid){
System.out.println("Buyerattemptingabidof"+bid+""+unitOfCurrency);
return mediator.placeBid(bid,unitOfCurrency);
}

}
